/*************************************************************************
	> File Name: Element.cc
	> Author: Joker
	> Mail: mahongtao@foxmail.com 
	> Created Time: 2020-09-23 12:06:54
 ************************************************************************/

#include "Element.h"
#include "Visitor.h"

#include <iostream>

using std::cout;
using std::endl;

ConcreateElementA::ConcreateElementA(){
    cout << "ConcreateElementA()" << endl;
}

ConcreateElementA::~ConcreateElementA(){
    cout << "~ConcreateElementA()" << endl;
}

void ConcreateElementA::Accept(Visitor & visitor){
    visitor.VisitConcreateElementA(this);
}

ConcreateElementB::ConcreateElementB(){
    cout << "ConcreateElementB" << endl;
}

ConcreateElementB::~ConcreateElementB(){
    cout << "~ConcreateElementB" << endl;
}

void ConcreateElementB::Accept(Visitor & visitor){
    visitor.VisitConcreateElementB(this);
}
